package com.dh.bm.service;

import com.dh.bm.dao.OrderDao;
import com.dh.bm.dao.impl.OrderDaoImpl;

public class OrderService {
    private OrderDao orderDao = new OrderDaoImpl();

    // 借书
    public boolean borrow_book(int book_id, int user_id) {

        // 把书籍的库存-1，要开启事务
        return orderDao.borrow_book(book_id, user_id);
    }
}
